/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package utilities.entities;

/**
 *
 * @author olawale
 */
public class RatedColumn {
    
    public RatedColumn(String columnName, int position){
        this.columnName = columnName;
        this.position = position;
    }
    private String columnName;
    private int position;

    public String getColumnName() {
        return columnName;
    }

    public int getPosition() {
        return position;
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof RatedColumn)) {
            return false;
        }
        RatedColumn other = (RatedColumn) obj;
        if ((this.columnName == null && other.columnName != null) ||
                (this.columnName != null && !this.columnName.equals(other.columnName))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 17 * hash + this.position;
        return hash;
    }



}
